//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.lyq.bean;

import com.lyq.bean.service.TC_Service;
import java.util.List;
import com.lyq.bean.Course;

public class Teacher {
    private String No;
    private String name;
    private String sex;
    private String age;
    private String collage;

    public Teacher() {
    }

    public String getNo() {
        return this.No;
    }

    public void setNo(String no) {
        this.No = no;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return this.sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getAge() {
        return this.age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getCollage() {
        return this.collage;
    }

    public void setCollage(String collage) {
        this.collage = collage;
    }
    
    public boolean isTeaching() {
        List<Course> courses = (new TC_Service()).getTeachC(this.No);
        return courses.size() > 0;
    }
}
